package cn.javass.dp.flyweight.example1;

/**
 * 享元对象
 */
public class ConcreteFlyweight implements Flyweight {

    /**
     * 示例 描述内部状态
     */
    private String intrinsicState;


    public ConcreteFlyweight(String intrinsicState) {
        this.intrinsicState = intrinsicState;
    }

    @Override
    public void operation(String extrinsicState) {
        //处理处理功能，可能会用到享元内部、外部状态
    }
}
